<?php // print_r($testi_qry_limited); ?>
<h2 id="testi_headerh2">Testimonials</h2>
<div id = "testi-wrap-main">
	<?php if(!empty($testi_qry_limited)){?>
	<div class="scroll-pane" style="height:<?php echo (isset($_SESSION['is_logged_in']) && $_SESSION['is_logged_in'])? '740px':'775px';?>">
		<ul id = "testi-wrap">
		<?php foreach ($testi_qry_limited as $row): ?>
				<li>
					<div id = "testi-info">
						<p><?php echo $row->testimonial; ?></p>
					</div>
					<div id = "testi-user">
						<p class = "testi-uname"> - <?php echo $row->firstname; ?> <?php echo $row->lastname; ?></p>
					</div>
				</li>
		<?php endforeach; ?>
		</ul>
	</div>
	<?php }//endif?>
</div>
<div id = "testi-pagination">
	<?php echo $pagination; ?>
</div>
<div class="clear"></div>

<?php if (isset($_SESSION['is_logged_in']) && $_SESSION['is_logged_in']) : ?>
	<div id = "testi-form">
		<form id = "add-testimonial-form" name = "add-testimonial-form" method = "POST">
			<input type="hidden" id="ep_orig_txtheight" name="ep_orig_txtheight" value=""/>
			<input id = "hidden" type = "hidden" value = "<?php echo base_url();?>testimonial/create_testimonials"/>
			<div class = "error"></div>
			<div class="clear"></div>
			<div><textarea id = "testi-message" name = "testi-message"></textarea><div class="clear"></div></div>
			<p>
				<div id = "testi_captcha"style = "float:left">
					<img src="<?php echo base_url(); ?>captcha" title="Captcha" alt="Catcha" />
					<input id="captcha" type="text" value=""  name="captcha" maxlength="10" />
					<input id = "hidden-captcha" type = "hidden" value = "<?php echo base_url();?>testimonial/captcha_validate"/>
				</div>
			</p>

			<p><input type = "submit" name = "" value = "Submit Testimonials" /> </p>
		</form>
	</div>
	<div style="clear:both"></div>
	<?php if(!empty($bottom_ads->banner)){ ?>
		<div class="misc_adbottom_holder"><img src="<?php echo base_url().'assets/images/'.$bottom_ads->banner; ?>"></div>
	<?php }//end if ?>
<?php endif; ?>


